home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
source
/
swagd-f
/
files.swg
/
0004_FILENAME.PAS.pas
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Pascal/Delphi Source File
|
1993-05-28
|
314 b
|
10 lines
if you want to remove the period, and all Characters after it in
a valid Dos Filename, do the following...
FileName := 'MYFile.TXT';
Name := Copy(FileName, 1, Pos('.', FileName) - 1);
That will do it. or you can use FSplit to break out all the
different parts of a Filename/path and get it that way.